package com.xzit.rcpyxt.constant;

/**
 * 统一响应状态值管理
 */
public enum MessageCode {

    OK(10000, "成功"),
    SYSTEM_ERROR(10001, "系统异常，请稍后重试"),
    NETWORK_ERROR(10002, "网络异常，请稍后重试"),
    USER_AUTH_ERROR(10003, "无效的身份信息"),
    USER_NOT_EXISTS_ERROR(10004, "用户不存在"),

    PARAME_NOT_NULL_ERROR(10010, "参数不能为空！"),
    PARAME_ERROR(10011, "参数异常！"),
    DATA_NOT_EXISTS_ERROR(10012, "数据不存在！"),
    DATA_ERROR(10013, "数据异常！"),
    WX_CODE_ERROR(10020, "code失效或者错误！"),
    WX_CODE_APPID_ERROR(10021, "code与appid不匹配！"),
    BING_USER_ERROR(10022, "绑定失败！"),
    SIGN_IN_ERROR(10023, "签到失败，超过签到范围！")
    ;

    MessageCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private int code;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}